<div id="main">
    <div id="contents">
        <form method="post" action="#" name="filters">
            <fieldset>
                <legend>
                    <label sid="ivr_menu.group"></label>
                </legend>
                <div class="frame_tab_layer">
                    <table class="cmenutitle" cellspacing="0" cellpadding="0" border="0" width="100%">
                        <tbody>
                        <tr>
                            <td class="frame_tab_title" width="10%">
                                <label sid="group.td1"></label>
                            </td>
                            <td class="frame_tab_title" width="40%">
                                <label sid="group.td2"></label>
                            </td>
                            <td class="frame_tab_title" width="10%">
                                <label sid="group.td1"></label>
                            </td>
                            <td class="frame_tab_title" width="40%">
                                <label sid="group.td2"></label>
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_center">1</td>
                            <td class="frame_tab_center">
                                <span id="msg758_1" style="padding-right:5px;">&nbsp;</span>
                                <input id="1" type="text" maxlength="10" size="10" name="id758">
                            </td>
                            <td class="frame_tab_center">2</td>
                            <td class="frame_tab_center">
                                <span id="msg758_2" style="padding-right:5px;">&nbsp;</span>
                                <input id="2" type="text" maxlength="10" size="10" name="id758">
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_center">3</td>
                            <td class="frame_tab_center">
                                <span id="msg758_3" style="padding-right:5px;">&nbsp;</span>
                                <input id="3" type="text" maxlength="10" size="10" name="id758">
                            </td>
                            <td class="frame_tab_center">4</td>
                            <td class="frame_tab_center">
                                <span id="msg758_4" style="padding-right:5px;">&nbsp;</span>
                                <input id="4" type="text" maxlength="10" size="10" name="id758">
                            </td>
                        </tr>
                        <tr>
                            <td class="frame_tab_center">5</td>
                            <td class="frame_tab_center">
                                <span id="msg758_5" style="padding-right:5px;">&nbsp;</span>
                                <input id="5" type="text" maxlength="10" size="10" name="id758">
                            </td>
                            <td class="frame_tab_center">6</td>
                            <td class="frame_tab_center">
                                <span id="msg758_6" style="padding-right:5px;">&nbsp;</span>
                                <input id="6" type="text" maxlength="10" size="10" name="id758">
                            </td>
                        </tr>
                        </tbody>
                    </table>
                </div>
            </fieldset>
            <br>
            <br>
            <div class="submitFooter">
                <div class="submitFooter">
                    <script type="text/javascript">
                        var buttonInfo = submitFooterButton(1,0);
                        $(".submitFooter").html(buttonInfo);
                    </script>
                </div>
            </div>
        </form>
    </div>
</div>
<br>
<div id="helpContainer">
    <div id="help">
        <div>
            <h2>
                <label sid="share.help"></label>
            </h2>
        </div>
        <dl>
            <dt class="term">
                <label sid="ivr_menu.group"></label>
            </dt>
            <dd class="definition">
                <label sid="group.comment"></label>
            </dd>
        </dl>
    </div>
</div>
<script type="text/javascript">
    $(document).ready(function(){
        if(lineshow("4000")){
            var cannotModify=msg.cannotModify1;
            appendtable();
        }
        var nonames=new Array('line_id','submit');
        $("[name=submit]").click(function () {
            var settext='';
            var surl=modules["set_data"];
            $(":input").each(function () {
                if(checkname(nonames,$(this).attr('name'))) {
                    var postvalue=$.trim($(this).val());
                    var sendname=$(this).attr('name');
                    postvalue=postvalue.replace(/\#/g,"%23");
                    surl+="&line_id="+$(this).attr("id")+"&"+sendname+"="+postvalue;
                }
            });
            settext=settext.replace(/\#/g,"%23");
            submitform(surl,settext,"group_main_load");
        });
    });


function appendtable() {
	var get758='';
	for(var i=1;i<7;i++) {
		get758+='&line_id='+i+"&id=758";
	}
	var url='/xml?method=gw.config.get'+get758+'&tmp='+Math.random();
	$.get(url,function (data) {
		var stat=$(data).find("rsp").attr("stat");
		if(stat=="fail") {
			$(data).find('Error').each(function () {
				var code=$(this).attr('code');
				if(code==4) {
					alert(cannotModify);
				}else if(code==5) {
					gotologin();
				}
			});
		}else {
			$(data).find("item").each(function () {
				var values=$(this).attr("value");
				var line_id=$(this).attr("line_id");
				$("#"+line_id).attr("value",values);
			});
		}
	});
}
</script>

